package com.tiger.project.service.impl;

import java.util.List;

import com.tiger.project.domain.ProjectAcceptanceEnclosure;
import com.tiger.project.mapper.ProjectAcceptanceEnclosureMapper;
import com.tiger.project.service.IProjectAcceptanceEnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【项目验收附件】Service业务层处理
 *
 * @author standard
 * @date 2022-09-19
 */
@Service
public class ProjectAcceptanceEnclosureServiceImpl implements IProjectAcceptanceEnclosureService {
    @Autowired
    private ProjectAcceptanceEnclosureMapper projectAcceptanceEnclosureMapper;

    /**
     * 查询【项目验收附件】
     *
     * @param id 【项目验收附件】主键
     * @return 【项目验收附件】
     */
    @Override
    public ProjectAcceptanceEnclosure selectProjectAcceptanceEnclosureById(Long id) {
        return projectAcceptanceEnclosureMapper.selectProjectAcceptanceEnclosureById(id);
    }

    /**
     * 查询【项目验收附件】列表
     *
     * @param projectAcceptanceEnclosure 【项目验收附件】
     * @return 【项目验收附件】
     */
    @Override
    public List<ProjectAcceptanceEnclosure> selectProjectAcceptanceEnclosureList(ProjectAcceptanceEnclosure projectAcceptanceEnclosure) {
        return projectAcceptanceEnclosureMapper.selectProjectAcceptanceEnclosureList(projectAcceptanceEnclosure);
    }

    /**
     * 新增【项目验收附件】
     *
     * @param projectAcceptanceEnclosure 【项目验收附件】
     * @return 结果
     */
    @Override
    public int insertProjectAcceptanceEnclosure(ProjectAcceptanceEnclosure projectAcceptanceEnclosure) {
        return projectAcceptanceEnclosureMapper.insertProjectAcceptanceEnclosure(projectAcceptanceEnclosure);
    }

    /**
     * 修改【项目验收附件】
     *
     * @param projectAcceptanceEnclosure 【项目验收附件】
     * @return 结果
     */
    @Override
    public int updateProjectAcceptanceEnclosure(ProjectAcceptanceEnclosure projectAcceptanceEnclosure) {
        return projectAcceptanceEnclosureMapper.updateProjectAcceptanceEnclosure(projectAcceptanceEnclosure);
    }

    /**
     * 批量删除【项目验收附件】
     *
     * @param ids 需要删除的【项目验收附件】主键
     * @return 结果
     */
    @Override
    public int deleteProjectAcceptanceEnclosureByIds(Long[] ids) {
        return projectAcceptanceEnclosureMapper.deleteProjectAcceptanceEnclosureByIds(ids);
    }

    /**
     * 删除【项目验收附件】信息
     *
     * @param id 【项目验收附件】主键
     * @return 结果
     */
    @Override
    public int deleteProjectAcceptanceEnclosureById(Long id) {
        return projectAcceptanceEnclosureMapper.deleteProjectAcceptanceEnclosureById(id);
    }

}
